home *** CD-ROM | disk | FTP | other *** search
- ; $VER: STFax-Install 2.4 (18.7.98)
- ;
- ; Installer script by Simone Tellini <wiz@pragmanet.it>
- ; with the help of Ben Preece <beej@bigfoot.com>
- ;
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; set initial variables
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (set @app-name "STFax Professional")
- (set AppDir "STFax4")
-
- (if (<= (/ (getversion) 65536) 38)
- (set Kick2 1)
- (set Kick2 0)
- )
-
- (if (exists "STFax:" (noreq))
- (set @default-dest (pathonly (expandpath "STFax:")))
- )
-
- (complete 0)
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; English strings
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (if (= @language "english") (
-
- (set @error-msg "An unexpected error has occured. Installation aborted.")
-
- (set #MUINotFound "MUI doesn't seem to be installed. You need to install it\nbefore installing STFax Pro.")
-
- (set #AskInstallDir (cat "Please select where you would like " @app-name " installed.\n"
- "A drawer called '" AppDir "' will be created there."))
-
- (set #InstallDirHelp (cat "Select where you would like " @app-name " installed. "
- "The installer will then create a drawer called '" AppDir "', "
- "and copy the program and necessary files into it.\n"))
-
- (set #AskName "Please enter your full name:")
- (set #AskNameHelp (cat "Enter your full name. This is needed to register your copy of " @app-name))
-
- (set #AskCompany "Please enter your company name:")
- (set #AskCompanyHelp (cat "Enter your company name. This is needed to register your copy of " @app-name))
-
- (set #AskRegCode "Please enter your registration code:")
- (set #AskRegCodeHelp (cat "Enter your registration code. You can find it on your "
- "registration card. Make sure to enter it correctly!"))
-
- (set #MUIClass "Installing some MUI classes...")
- (set #MUIClassHelp "This will install some MUI classes needed by STFax")
-
- (set #Datatype "Installing STFax.datatype...")
- (set #DatatypeHelp (cat "This will install the STFax.datatype: it will let "
- "you import STFax faxes into any program that supports "
- "datatypes."))
-
- (set #UserStartup "Editing your S:User-Startup")
- (set #UserStartupHelp "The Installer will add an assign needed by STFax")
-
- (set #KeyFile "Creating your key file")
-
- (set #Catalogs "Copying catalog files")
-
- (set #AskContribs "Do you want to install the contributions?")
- (set #AskContribsHelp "These are small utilities written by STFax users")
- (set #CopyContribs "Copying contributions")
-
- (set #AskSecondDisk "Please insert the second disk in your floppy drive")
-
- (set #RemoveTemp "Removing temporary files...")
- ))
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; Deutsch strings
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (if (= @language "deutsch") (
-
- (set @error-msg "Es ist ein unerwarteter Fehler aufgetreten. Der Installationsvorgang wurde abgebrochen.")
-
- (set #MUINotFound "Auf Ihrem Rechner ist offensichtlich kein MUI installiert. MUI muß installiert werden,\nbevor Sie STFax Pro installieren.")
-
- (set #AskInstallDir (cat "Bitte wählen Sie das Verzeichnis, in dem Sie " @app-name " installieren wollen.\n"
- "Ein Unterverzeichnis namens '" AppDir "' wird dort automatisch erzeugt."))
-
- (set #InstallDirHelp (cat "Wählen Sie ein Verzeichnis, in dem Sie " @app-name " installieren wollen. "
- "Der Installer erzeugt dann ein Verzeichnis namens '" AppDir "', "
- "in welches das Programm und alle benötigten Dateien kopiert werden.\n"))
-
- (set #AskName "Bitte geben Sie Ihren vollständigen Namen ein:")
- (set #AskNameHelp (cat "Geben Sie Ihren vollständigen Namen ein. Dies ist notwendig um " @app-name " zu registrieren."))
-
- (set #AskCompany "Bitte geben Sie Ihren Firmennamen ein:")
- (set #AskCompanyHelp (cat "Geben Sie Ihren Firmennamen ein. Dies ist notwendig um " @app-name " zu registrieren."))
-
- (set #AskRegCode "Bitte geben Sie Ihre Seriennummer ein:")
- (set #AskRegCodeHelp (cat "Geben Sie die Seriennummer des Programms ein. Sie finden diese auf"
- "auf der Registrierkarte. Bitte vergewissern Sie sich, daß Sie die Nummer korrekt eingeben!"))
-
- (set #MUIClass "Installiere benötigte MUI-Klassen...")
- (set #MUIClassHelp "Diese Schritt installiert einige MUI-Klassen, die von STFax benötigt werden")
-
- (set #Datatype "Installiere das STFax.datatype...")
- (set #DatatypeHelp (cat "Dieser Schritt installiert das STFax.datatype: es gestattet Ihnen "
- "mit STFax erstellte/empfangene Faxe in jedes Programm zu importieren, "
- "das Datatypes unterstützt."))
-
- (set #UserStartup "Die Datei S:User-Startup wird angepaßt")
- (set #UserStartupHelp "Der Installer richtet ein von STFax benötigtes Assign ein")
-
- (set #KeyFile "Erzeuge Ihr Keyfile")
-
- (set #Catalogs "Kopiere die catalog-Dateien")
-
- (set #AskContribs "Wollen Sie die Goodies installieren?")
- (set #AskContribsHelp "Hierbei handelt es sich um kleine Utilities, die von anderen STFax-Benutzern erstellt wurden.")
- (set #CopyContribs "Goodies werden kopiert")
-
- (set #AskSecondDisk "Bitte legen Sie die zweite Diskette in Ihr Diskettenlaufwerk")
-
- (set #RemoveTemp "Temporäre Dateien werden gelöscht...")
- ))
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; Italian strings
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (if (= @language "italiano") (
-
- (set @error-msg "È accaduto un errore inaspettato. Installazione annullata.")
-
- (set #MUINotFound "MUI non sembra essere installata. Devi installarla\nprima di procedere ad installare STFax Pro.")
-
- (set #AskInstallDir (cat "Scegli dove vuoi installare " @app-name ".\n"
- "Lì verrà creata una directory chiamata '" AppDir "'."))
-
- (set #InstallDirHelp (cat "Scegli dove vuoi installare " @app-name ". "
- "L'installer creerà una directory chiamata '" AppDir "', "
- "e vi copierà il programma e i file necessari.\n"))
-
- (set #AskName "Inserisci nome e cognome:")
- (set #AskNameHelp (cat "Inserisci il tuo nome.\n"
- "È necessario per registrare la tua copia di " @app-name))
-
- (set #AskCompany "Inserisci il nome della tua ditta:")
- (set #AskCompanyHelp (cat "Inserisci il nome della tua ditta.\nÈ necessario per registrare la tua copia di " @app-name))
-
- (set #AskRegCode "Inserisci il tuo codice di registrazione:")
- (set #AskRegCodeHelp (cat "Inserisci il tuo codice di registrazione.\n"
- "Lo puoi trovare sulla cartolina di registrazione.\n"
- "Assicurati di inserirlo correttamente!"))
-
- (set #MUIClass "Installo alcune classi MUI...")
- (set #MUIClassHelp "Installo alcune classi MUI utilizzate da STFax")
-
- (set #Datatype "Installo l'STFax.datatype...")
- (set #DatatypeHelp (cat "Questa operazione installerà STFax.datatype: ti permetterà "
- "di importare i fax di STFax in tutti i programmi che supportano "
- "i datatype."))
-
- (set #UserStartup "Modifico la tua s:User-Startup")
- (set #UserStartupHelp "L'Installer aggiungerà un assign necessario per STFax")
-
- (set #KeyFile "Creo il tuo key file")
-
- (set #Catalogs "Copio i cataloghi")
-
- (set #AskContribs "Vuoi installare i contributi?")
- (set #AskContribsHelp "Sono piccole utilities scritte da utenti di STFax.")
- (set #CopyContribs "Copio i contributi")
-
- (set #AskSecondDisk "Inserisci il secondo disco nel drive")
-
- (set #RemoveTemp "Rimuovo i file temporanei...")
- ))
-
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; Here we go...
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (welcome)
-
- (if (= (exists "MUI:" (noreq)) 0)
- (abort #MUINotFound)
- )
-
- (set InstallDir
- (askdir
- (prompt #AskInstallDir)
- (help #InstallDirHelp)
- (default @default-dest)
- )
- )
-
- (Set DestDir (tackon InstallDir AppDir))
- (Set FaxInDir (tackon DestDir "Fax_In"))
- (Set FaxOutDir (tackon DestDir "Fax_Out"))
- (Set ConfigDir (tackon DestDir "Config"))
- (Set LocaleDir (tackon DestDir "Catalogs"))
- (Set ContribDir (tackon DestDir "Contributions"))
- (Set DataDir (tackon DestDir "Data"))
- (Set PicsDir (tackon DestDir "Pics"))
- (Set RexxDir (tackon DestDir "Rexx"))
- (Set ScriptDir (tackon DestDir "Scripts"))
- (Set DocsDir (tackon DestDir "Docs"))
- (Set MessagesDir (tackon DestDir "Messages"))
- (set LibsDir (tackon DestDir "libs"))
-
- (set @default-dest DestDir)
-
- (set MainExe "STFax")
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; Setup
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (makeassign "STFaxInstall" "")
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; Create directories
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (makedir DestDir)
- (makedir LocaleDir (infos))
- (makedir FaxInDir (infos))
- (makedir FaxOutDir (infos))
- (makedir DataDir)
- (makedir ConfigDir)
- (makedir MessagesDir)
- (makedir (tackon MessagesDir "0000"))
- (makedir LibsDir)
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; Copy files
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (if (exists ("STFaxInstall:/STFax.info"))
- (copyfiles
- (source "STFaxInstall:/STFax.info")
- (dest InstallDir)
- (newname "STFax4.info")
- (infos)
- (noposition)
- )
- )
-
- (complete 10)
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; Copy main files
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (copyfiles
- (source (tackon "STFaxInstall:" MainExe))
- (dest DestDir)
- (newname "STFax")
- )
-
- (copyfiles
- (source "STFaxInstall:FaxViewer")
- (dest DestDir)
- )
-
- (copyfiles
- (source "STFaxInstall:Phonebook")
- (dest DestDir)
- )
-
- (copylib
- (source "STFaxInstall:libs/STFax.library")
- (dest LibsDir)
- )
-
- (copylib
- (source "STFaxInstall:libs/vapor_toolkit.library")
- (dest "LIBS:")
- )
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; copy icons files, if needed
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
-
- (if (= (exists (tackon DestDir "STFax.info")) 0)
- (copyfiles (source "STFaxInstall:STFax.info") (dest DestDir) (noposition))
- )
-
- (if (= (exists (tackon DestDir "FaxViewer.info")) 0)
- (if (exists "STFaxInstall:FaxViewer.info")
- (copyfiles (source "STFaxInstall:FaxViewer.info") (dest DestDir) (noposition))
- )
- )
-
- (if (= (exists (tackon DestDir "Phonebook.info")) 0)
- (if (exists "STFaxInstall:Phonebook.info")
- (copyfiles (source "STFaxInstall:Phonebook.info") (dest DestDir) (noposition))
- )
- )
-
- (if (= (exists (tackon DestDir "STFax.guide.info")) 0)
- (copyfiles (source "STFaxInstall:STFax.guide.info") (dest DestDir) (noposition))
- )
-
- (copyfiles (source "STFaxInstall:Catalogs.info") (dest DestDir) (noposition))
- (copyfiles (source "STFaxInstall:Rexx.info") (dest DestDir) (noposition))
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; copy sub directories
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (copyfiles (source "STFaxInstall:Rexx") (dest RexxDir) (noposition) (infos) (all))
- (copyfiles (source "STFaxInstall:Scripts") (dest ScriptDir) (noposition) (infos) (all))
- (copyfiles (source "STFaxInstall:Pics") (dest PicsDir) (all))
- (complete 20)
- (copyfiles (source "STFaxInstall:Data") (dest DataDir) (all))
- (copyfiles (source "STFaxInstall:Docs") (dest DocsDir) (noposition) (infos) (all))
- (complete 40)
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; move old files in the right position
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (if (= (exists (tackon DestDir "NoData.txt")) 1)
- (
- (copyfiles (source (tackon DestDir "NoData.txt")) (dest DataDir))
- (delete (tackon DestDir "NoData.txt"))
- )
- )
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; Copy the guide
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (copyfiles (source "STFaxInstall:STFax.guide") (dest DestDir))
-
- (if Kick2
- (tooltype
- (dest (tackon DestDir "STFax.guide"))
- (setdefaulttool "AmigaGuide")
- )
- )
-
- (complete 50)
-
- (copyfiles
- (source "STFaxInstall:Catalogs")
- (dest LocaleDir)
- (pattern "#?.c?")
- )
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; Install MUI classes
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (copylib
- (prompt #MUIClass " (NFloattext.mcc)")
- (help #MUIClassHelp)
- (source "STFaxInstall:MUI/NFloattext.mcc")
- (dest "MUI:Libs/MUI")
- (confirm)
- )
-
- (copylib
- (prompt #MUIClass " (NList.mcc)")
- (help #MUIClassHelp)
- (source "STFaxInstall:MUI/NList.mcc")
- (dest "MUI:Libs/MUI")
- (confirm)
- )
-
- (copylib
- (prompt #MUIClass " (NListview.mcc)")
- (help #MUIClassHelp)
- (source "STFaxInstall:MUI/NListview.mcc")
- (dest "MUI:Libs/MUI")
- (confirm)
- )
-
- (copylib
- (prompt #MUIClass " (NListviews.mcp)")
- (help #MUIClassHelp)
- (source "STFaxInstall:MUI/NListviews.mcp")
- (dest "MUI:Libs/MUI")
- (confirm)
- )
-
- (copylib
- (prompt #MUIClass " (Textinput.mcc)")
- (help #MUIClassHelp)
- (source "STFaxInstall:MUI/Textinput.mcc")
- (dest "MUI:Libs/MUI")
- (confirm)
- )
-
- (copylib
- (prompt #MUIClass " (Textinput.mcp)")
- (help #MUIClassHelp)
- (source "STFaxInstall:MUI/Textinput.mcp")
- (dest "MUI:Libs/MUI")
- (confirm)
- )
-
- (copylib
- (prompt #MUIClass " (Textinputscroll.mcc)")
- (help #MUIClassHelp)
- (source "STFaxInstall:MUI/Textinputscroll.mcc")
- (dest "MUI:Libs/MUI")
- (confirm)
- )
-
- (copylib
- (prompt #MUIClass " (SpeedBar.mcc)")
- (help #MUIClassHelp)
- (source "STFaxInstall:MUI/SpeedBar.mcc")
- (dest "MUI:Libs/MUI")
- (confirm)
- )
-
- (copylib
- (prompt #MUIClass " (SpeedButton.mcc)")
- (help #MUIClassHelp)
- (source "STFaxInstall:MUI/SpeedButton.mcc")
- (dest "MUI:Libs/MUI")
- (confirm)
- )
-
- (copylib
- (prompt #MUIClass " (SpeedBar.mcp)")
- (help #MUIClassHelp)
- (source "STFaxInstall:MUI/SpeedBar.mcp")
- (dest "MUI:Libs/MUI")
- (confirm)
- )
-
- (copylib
- (prompt #MUIClass " (CManager.mcc)")
- (help #MUIClassHelp)
- (source "STFaxInstall:MUI/CManager.mcc")
- (dest "MUI:Libs/MUI")
- (confirm)
- )
-
- (copylib
- (prompt #MUIClass " (CManager.library)")
- (help #MUIClassHelp)
- (source "STFaxInstall:libs/CManager.library")
- (dest "Libs:")
- (confirm)
- )
-
- (complete 60)
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; Install stuff on SYS:
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (copyfiles
- (source "STFaxInstall:Devs/Printers/STFaxPrt")
- (dest "DEVS:Printers")
- )
-
- (copyfiles
- (source "STFaxInstall:Devs/Datatypes")
- (dest "DEVS:Datatypes")
- (pattern "#?")
- (infos)
- (noposition)
- )
-
- (copylib
- (prompt #Datatype)
- (help #DatatypeHelp)
- (source "STFaxInstall:Classes/Datatypes/STFax.datatype")
- (dest "SYS:Classes/Datatypes")
- (confirm)
- )
-
- (complete 70)
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; Update the user-startup
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (startup "STFax"
- (prompt #UserStartup)
- (help #UserStartupHelp)
- (command (cat "Assign STFax: \"" DestDir "\" >NIL:\nAssign LIBS: STFax:libs ADD"))
- )
-
- (makeassign "STFax" DestDir)
- (run "Assign LIBS: STFax:libs ADD")
-
- (complete 80)
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; install catalogs
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (copyfiles
- (prompt #Catalogs)
- (help @copyfiles-help)
- (source "STFaxInstall:Catalogs")
- (dest LocaleDir)
- (choices "italiano" "deutsch")
- (confirm)
- )
-
- (complete 90)
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; Cleanup
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (run "Assign STFaxInstall: REMOVE")
-
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ; All done.
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-
- (complete 100)
-
-